﻿using System;
using SuperSocket;

namespace Xc.DataAccess.Protocoals.WaterMeters.Models
{
    public class OnlineInfos
    {
        /// <summary>
        /// 设备编号
        /// </summary>
        public string DeviceId { get; set; }
        /// <summary>
        /// 表计类型
        /// </summary>
        public MeterType? MeterType { get; set; }
        /// <summary>
        /// 厂商ID
        /// </summary>
        public byte? CompanyId { get; set; }
        /// <summary>
        /// 设备IP地址
        /// </summary>
        public string DevcieIPEndpoint { get; set; }
        /// <summary>
        /// 绘话编号
        /// </summary>
        public string SessionID
        {
            get; set;
        }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTimeOffset StartTime
        {
            get; set;
        }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTimeOffset LastActiveTime
        {
            get; set;
        }
        /// <summary>
        /// 会话状态
        /// </summary>
        public SessionState State { get; set; }
    }
}
